home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / include / Xm / CommandP.h.z / CommandP.h
Encoding:
C/C++ Source or Header  |  2003-11-18  |  3.9 KB  |  139 lines

  1. /*
  2.  * CommandP.h
  3.  *
  4.  * Copyright 2000, Silicon Graphics, Inc.
  5.  * ALL RIGHTS RESERVED
  6.  * 
  7.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  8.  * States.   Use of a copyright notice is precautionary only and does not
  9.  * imply publication or disclosure.
  10.  *
  11.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  12.  * Use, duplication or disclosure by the Government is subject to restrictions
  13.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  14.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  15.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  16.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  17.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  18.  *
  19.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  20.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  21.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  22.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  23.  * GRAPHICS, INC.
  24.  */
  25. /* 
  26.  * @OSF_COPYRIGHT@
  27.  * (c) Copyright 1990, 1991, 1992, 1993, 1994 OPEN SOFTWARE FOUNDATION, INC.
  28.  * ALL RIGHTS RESERVED
  29.  *  
  30. */ 
  31. /*
  32.  * HISTORY
  33.  * Motif Release 1.2.5
  34. */
  35. /*   $XConsortium: CommandP.h /main/cde1_maint/2 1995/08/18 18:54:33 drk $ */
  36. /*
  37. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  38. /*
  39. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  40. #ifndef _XmCommandP_h
  41. #define _XmCommandP_h
  42.  
  43. #include <Xm/SelectioBP.h>
  44. #include <Xm/Command.h>
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49.  
  50. /* Constraint part record for Command widget */
  51.  
  52. typedef struct _XmCommandConstraintPart
  53. {
  54.    char unused;
  55. } XmCommandConstraintPart, * XmCommandConstraint;
  56.  
  57. /*  New fields for the Command widget class record  */
  58.  
  59. typedef struct
  60. {
  61.     XtPointer           extension;      /* Pointer to extension record */
  62. } XmCommandClassPart;
  63.  
  64.  
  65. /* Full class record declaration */
  66.  
  67. typedef struct _XmCommandClassRec
  68. {
  69.    CoreClassPart            core_class;
  70.    CompositeClassPart       composite_class;
  71.    ConstraintClassPart      constraint_class;
  72.    XmManagerClassPart       manager_class;
  73.    XmBulletinBoardClassPart bulletin_board_class;
  74.    XmSelectionBoxClassPart  selection_box_class;
  75.    XmCommandClassPart       command_class;
  76. } XmCommandClassRec;
  77.  
  78. externalref XmCommandClassRec xmCommandClassRec;
  79.  
  80. /* New fields for the Command widget record */
  81.  
  82. typedef struct
  83. {
  84.     XtCallbackList       callback;
  85.     XtCallbackList       value_changed_callback;
  86.     int                  history_max_items;
  87.     Boolean              error;        /* error has been made visible in list */
  88. } XmCommandPart;
  89.  
  90.  
  91. /****************************************************************
  92.  *
  93.  * Full instance record declaration
  94.  *
  95.  ****************************************************************/
  96.  
  97. typedef struct _XmCommandRec
  98. {
  99.     CorePart            core;
  100.     CompositePart       composite;
  101.     ConstraintPart      constraint;
  102.     XmManagerPart       manager;
  103.     XmBulletinBoardPart bulletin_board;
  104.     XmSelectionBoxPart  selection_box;
  105.     XmCommandPart       command;
  106. } XmCommandRec;
  107.  
  108.  
  109.  
  110. /********    Private Function Declarations    ********/
  111. #ifdef _NO_PROTO
  112.  
  113. extern void _XmCommandReturn() ;
  114. extern void _XmCommandUpOrDown() ;
  115.  
  116. #else
  117.  
  118. extern void _XmCommandReturn( 
  119.                         Widget wid,
  120.                         XEvent *event,
  121.                         String *params,
  122.                         Cardinal *numParams) ;
  123. extern void _XmCommandUpOrDown( 
  124.                         Widget wid,
  125.                         XEvent *event,
  126.                         String *argv,
  127.                         Cardinal *argc) ;
  128.  
  129. #endif /* _NO_PROTO */
  130. /********    End Private Function Declarations    ********/
  131.  
  132.  
  133. #ifdef __cplusplus
  134. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  135. #endif
  136.  
  137. #endif /* _XmCommandP_h */
  138. /* DON'T ADD ANYTHING AFTER THIS #endif */
  139.